Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633432 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/108 - Maths addition

app.js cody/swapnilsparsh/30DaysOfJavaScript/108 - Maths addition/app.js
179 Views
0 Comments
//generate random numbers
let firstNumber = parseInt(Math.random()*10);
let secondNumber = parseInt(Math.random()*10);

//get the total
let total = firstNumber + secondNumber;

//display numbers on the canvas
README.md cody/swapnilsparsh/30DaysOfJavaScript/108 - Maths addition/README.md
171 Views
0 Comments
# math-addition-app-project

style.css cody/swapnilsparsh/30DaysOfJavaScript/108 - Maths addition/style.css
113 Views
0 Comments
body{
background: rgb(0, 0, 0);
}

#canvas{
box-sizing:border-box;
display: flex;
align-items: center;
index.html cody/swapnilsparsh/30DaysOfJavaScript/108 - Maths addition/index.html
347 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Document</title>